package domain

import (
	"time"
)

type HostStateLog struct {
	ID         string    `gorm:"column:id;primary_key;type:varchar(255);"`
	Hostname   string    `gorm:"column:hostname;not null;type:varchar(255);"`
	IP         string    `gorm:"column:ip;not null;type:varchar(255);"`
	RemoteIP   string    `gorm:"column:remote_ip;not null;type:varchar(255);"`
	RemotePort string    `gorm:"column:remote_port;not null;type:varchar(255);"`
	StartTime  time.Time `gorm:"column:start_time;"`
	EndTime    time.Time `gorm:"column:end_time;"`
}

// TableName sets the insert table name for this struct type
func (h *HostStateLog) TableName() string {
	return "t_host_state_log"
}
